package com.demo.service;

import com.demo.model.ShoppingCart;

import java.util.List;

/**
 * @Author EricLin
 * @Date 2017/12/8
 */
public interface ShoppingCartService {
    int save(ShoppingCart shoppingCart);

    ShoppingCart getShoppingCartById(Integer id);

    Integer updateShoppingCart(ShoppingCart shoppingCart);

    Integer deleteShoppingCart(int id);

    List<ShoppingCart> getShoppingCart(Integer productId);

    List<ShoppingCart> getShoppingCartByUserId(Integer userId);
}
